<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script type='text/javascript' src='./04/js/vue.js'></script>
</head>

<body>
    <div id='app'>
        {{msg}}
====
<com1>
    <p slot='aa'>我是header</p>
    <p>我是main</p>
</com1>

    </div>
    <script type='text/javascript'>

        var com1 = {
            data() {
                return {
                    st1: '我是com1的值'
                }
            },
            template: `<div calss='com1'>
                我是一个com1组件==== 
                =================
                <hr>
                <header>
                    <slot name='aa'></slot>
                </header>
                <main>
                    <slot></slot>
                </main>
                <footer></footer>
             </div>`,
        }
        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'Hello Vue'
            },
            components:{
                com1
            }
        });
    </script>
</body>

</html>